#include <iostream>
#include <stdint.h>
#include <string>


using namespace std;

void Func2(int *x)
{
    (* x) = (* x) + 10;
}

int main(){
	cout << "Hello World" << endl;
	cout << "Begins..." << endl;
	typedef std::pair<float, uint32_t> Result;
	// option1: failed
	int max_num_results_ = 10000000;
	// option2: OK
	// int max_num_results_ = 5000;
	// Result ranked_results[max_num_results_];  // Using a variable length array here.
	cout << "mark1" << endl;
	Result* ranked_results = new Result[max_num_results_];  // Using a variable length array here.
	cout << "mark2" << endl;
	delete[] ranked_results;
	cout << "mark3" << endl;
	cout << "Ends." << endl;
	return 0;
}

